﻿@model ggHD.WebSite.Models.MailDetailViewModel


@if (Model.Attachments.Count() > 0)
{
    <div hidden="hidden" id="attDwl"></div>
    <ul class="list-group" style="width:68.8%">

        @for (var i = 0; i < Model.Attachments.Length; i++)
        {
            <li class="list-group-item">
                <button class="btn btn-primary btn-xs" onclick='GetAttache("@Model.Id","@i");'>
                    Скачать
                </button> @i - @Model.Attachments[i]
            </li>
        }
    </ul>


}

@if (string.IsNullOrWhiteSpace(Model.HtmlVersion))
{
    @Model.PlainTextVersion
}
else
{
    <iframe src="/RawMails/GetMailHtmlBody/?mailId=@Model.Id" style="width:100%; border:none; font-size:65%"></iframe>
}